package com.team.lostProperty.service.impl;

import com.team.lostProperty.entity.NewPushInfo;
import com.team.lostProperty.mapper.NewPushInfoDao;
import com.team.lostProperty.service.NewPushInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author duzq
 * @date 2020/07/22 18:48
 **/
@Service
public class NewPushInfoServiceImpl implements NewPushInfoService {

    @Resource
    NewPushInfoDao newPushInfoDao;

    @Override
    public void insert(NewPushInfo newPushInfo) {
        newPushInfoDao.insert(newPushInfo);
    }

    @Override
    public List<NewPushInfo> selectAll(NewPushInfo newPushInfo) {
        List<NewPushInfo> list=newPushInfoDao.selectAll(newPushInfo);
        return list;
    }

    @Override
    public void update(NewPushInfo newPushInfo) {
        newPushInfoDao.update(newPushInfo);
    }

    @Override
    public List<NewPushInfo> selectByUser(NewPushInfo newPushInfo) {
        List<NewPushInfo> list=newPushInfoDao.selectByUser(newPushInfo);
        return list;
    }

    @Override
    public void delete(NewPushInfo newPushInfo) {
        newPushInfoDao.delete(newPushInfo);
    }
}
